From a20b45995fc6ffdb34c595b9a6d37415db921bdc Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 12 Jun 2001 19:22:43 +0000 Subject: [PATCH] New functions. 2001-06-12 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, gdk_keymap_get_direction): New functions. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gdk/linux-fb/gdkkeyboard-fb.c | 17 +++++++++++++++++ 8 files changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7aede46248..3223db57e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7aede46248..3223db57e2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-06-12 Alexander Larsson + + * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default, + gdk_keymap_get_direction): New functions. + Tue Jun 12 12:41:27 2001 Jonathan Blandford * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify diff --git a/gdk/linux-fb/gdkkeyboard-fb.c b/gdk/linux-fb/gdkkeyboard-fb.c index e6a3582270..c5c8993ca6 100644 --- a/gdk/linux-fb/gdkkeyboard-fb.c +++ b/gdk/linux-fb/gdkkeyboard-fb.c @@ -75,6 +75,7 @@ struct _GdkFBKeyboardDevice { }; static GdkFBKeyboard *gdk_fb_keyboard = NULL; +static GdkKeymap *default_keymap = NULL; static gboolean xlate_open (GdkFBKeyboard *kb); static void xlate_close (GdkFBKeyboard *kb); @@ -143,6 +144,22 @@ static GdkFBKeyboardDevice keyb_devs[] = }, }; +GdkKeymap* +gdk_keymap_get_default (void) +{ + if (default_keymap == NULL) + default_keymap = g_object_new (gdk_keymap_get_type (), NULL); + + return default_keymap; +} + +PangoDirection +gdk_keymap_get_direction (GdkKeymap *keymap) +{ + /* FIXME: Only supports LTR keymaps at the moment */ + return PANGO_DIRECTION_LTR; +} + guint gdk_fb_keyboard_modifiers () { -- 2.30.2